import { FC, ReactElement } from 'react';
import { BrowserRouter, Routes, Route } from 'react-router-dom'
import Order from './views/order'
import PaySuccess from './views/paySuccess'
type AppProps = {
  // Prop types here 
};


const App: FC<AppProps> = ({ } ): ReactElement => {
  return (
    <div>
      <BrowserRouter>
        <Routes>
          <Route path="/" element={<Order></Order>}></Route>
          <Route path="/pay/success" element={<PaySuccess></PaySuccess>}></Route>
        </Routes>
      </BrowserRouter>
    </div>  
  )
};

export default App;
